package cn.fsd.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
//调度管理订单列表需要的字段
public class OrderBean {
    //订单表
    private String order_id;//订单号
    private String commodity_id;//商品代号
    private Integer commodity_num;//商品数量
    private String order_type;//订单类型
    private String order_status;//订单状态
    private Integer is_invoice;//是否要发票
    private String note;//备注
    private String operator_id;//录入员
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") //处理响应
    @DateTimeFormat(pattern = "yyyy-MM-dd") //处理请求
    private Date delivery_date;//送货日期
    //商品表(根据commodity_id查询)
    private String commodity_name;//商品名称
    //客户表(根据customer_id查询)
    private String customer_name;//用户名
    //用户-地址表(根据customer_id和address_choice查询)
    private String receiver;//收货人
    private String receiver_address;//地址
    private String receiver_phone;//电话
    private String receiver_postal_code;//邮编
    //任务单表(根据order_id查询)
    private String station_id;//执行任务分站
}
